﻿using RpcCentral.Model.DB;
using SqlSugarHelper;

namespace RpcCentral.DAL.Repository
{
    internal class ServerGroupDAL : IServerGroupDAL
    {
        private IRepository<ServerGroupModel> _Db;
        public ServerGroupDAL(IRepository<ServerGroupModel> db)
        {
            _Db = db;
        }
        public string GetTypeVal(long groupId)
        {
            return this._Db.Get(a => a.Id == groupId, a => a.TypeVal);
        }
    }
}
